<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>成绩管理 - 智慧题库</title>
    <link href="../assets/css/tailwind.css" rel="stylesheet">
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet">
</head>
<body class="font-inter bg-gray-50 min-h-screen flex flex-col bg-education">
    <!-- 背景装饰元素 -->
    <div class="absolute inset-0 overflow-hidden -z-10">
        <div class="absolute top-10 left-10 w-40 h-40 rounded-full bg-primary/10 animate-float">
            <div class="w-full h-full flex items-center justify-center text-primary/20 text-6xl education-icon">
                <i class="fa fa-book"></i>
            </div>
        </div>
        <div class="absolute bottom-20 right-20 w-60 h-60 rounded-full bg-secondary/10 animate-float" style="animation-delay: -2s">
            <div class="w-full h-full flex items-center justify-center text-secondary/20 text-7xl education-icon">
                <i class="fa fa-graduation-cap"></i>
            </div>
        </div>
        <div class="absolute top-1/3 right-1/4 w-32 h-32 rounded-full bg-accent/10 animate-float" style="animation-delay: -4s">
            <div class="w-full h-full flex items-center justify-center text-accent/20 text-5xl education-icon">
                <i class="fa fa-lightbulb-o"></i>
            </div>
        </div>
        <div class="absolute bottom-1/3 left-1/3 w-28 h-28 rounded-full bg-primary/10 animate-float" style="animation-delay: -1s">
            <div class="w-full h-full flex items-center justify-center text-primary/20 text-4xl education-icon">
                <i class="fa fa-pencil-square-o"></i>
            </div>
        </div>
    </div>

    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white/90 backdrop-blur-sm shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <div class="w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center text-primary">
                    <i class="fa fa-question-circle"></i>
                </div>
                <h1 class="text-xl font-bold text-dark ml-0 md:ml-[-2rem]">智慧题库管理系统</h1>
            </div>
            
            <!-- 顶部导航 -->
            <div class="hidden md:flex items-center space-x-2">
                <a href="AdminDashboard.html" class="nav-item">
                    <i class="fa fa-home mr-2"></i> 控制面板
                </a>
                <a href="QuestionManagement.html" class="nav-item">
                    <i class="fa fa-book mr-2"></i> 题库管理
                </a>
                <a href="ExamManagement.html" class="nav-item active">
                    <i class="fa fa-graduation-cap mr-2"></i> 考试管理
                </a>
                <a href="TextbookVersionList.html" class="nav-item">
                    <i class="fa fa-archive mr-2"></i> 教材管理
                </a>
                <a href="StatisticsAnalysis.html" class="nav-item">
                    <i class="fa fa-bar-chart mr-2"></i> 数据分析
                </a>
                <a href="SystemSettings.html" class="nav-item">
                    <i class="fa fa-cog mr-2"></i> 系统设置
                </a>
            </div>
            
            <div class="flex items-center space-x-4">
                <button class="p-2 text-muted hover:text-primary transition-colors relative">
                    <i class="fa fa-bell"></i>
                    <span class="absolute top-1 right-1 w-2 h-2 bg-accent rounded-full"></span>
                </button>
                <div class="flex items-center space-x-2">
                    <img src="https://picsum.photos/id/64/40/40" alt="用户头像" class="w-8 h-8 rounded-full object-cover border-2 border-primary/20">
                    <span class="hidden md:inline text-sm font-medium text-dark">张老师</span>
                    <i class="fa fa-angle-down text-muted"></i>
                </div>
                <button class="md:hidden p-2 text-muted hover:text-primary transition-colors" id="mobile-menu-button">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="flex-grow flex">
        <!-- 左侧导航栏 -->
        <aside id="sidebar" class="w-64 bg-sidebar-bg shadow-sidebar transition-all duration-300 h-[calc(100vh-64px)] sticky top-[64px] overflow-y-auto">
            <!-- 考试管理菜单 -->
            <div class="p-4 border-b border-gray-200">
                <h3 class="text-lg font-bold text-center text-muted uppercase tracking-wider">考试管理</h3>
            </div>
            <div class="p-2">
                <a href="ExamManagement.html" class="sidebar-item">
                    <i class="fa fa-calendar"></i>
                    <span>考试安排</span>
                </a>
                <a href="ExamPaperManagement.html" class="sidebar-item">
                    <i class="fa fa-file-text-o"></i>
                    <span>试卷管理</span>
                </a>
                <a href="CreateExamPaper.html" class="sidebar-item">
                    <i class="fa fa-plus-circle"></i>
                    <span>创建试卷</span>
                </a>
                <a href="StudentManagement.html" class="sidebar-item">
                    <i class="fa fa-users"></i>
                    <span>考生管理</span>
                </a>
                <div class="sidebar-item active">
                    <i class="fa fa-check-square-o"></i>
                    <span>成绩管理</span>
                </div>
            </div>
        </aside>

        <!-- 内容区域 -->
        <div class="flex-grow p-6">
            <!-- 页面标题 -->
            <div class="mb-8">
                <div class="flex items-center justify-between">
                    <div>
                        <h2 class="text-[clamp(1.5rem,3vw,2rem)] font-bold text-dark">成绩管理</h2>
                        <p class="text-muted mt-2">管理考试成绩，包括成绩录入、统计分析和成绩导出</p>
                    </div>
                    <div class="flex space-x-3">
                        <button class="px-4 py-2 bg-white border border-gray-300 text-dark rounded-lg shadow-sm hover:bg-gray-50 transition-colors">
                            <i class="fa fa-download mr-2"></i>导出成绩
                        </button>
                        <button class="px-4 py-2 bg-primary text-white rounded-lg shadow-sm hover:bg-primary/90 transition-colors">
                            <i class="fa fa-upload mr-2"></i>导入成绩
                        </button>
                    </div>
                </div>
            </div>

            <!-- 成绩统计卡片 -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                <div class="stat-card rounded-2xl p-6 card-hover">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-muted text-sm">总考试数</p>
                            <h3 class="text-3xl font-bold text-dark mt-1">24</h3>
                            <p class="text-accent text-sm mt-2 flex items-center">
                                <i class="fa fa-arrow-up mr-1"></i> 本月新增 3 场
                            </p>
                        </div>
                        <div class="w-12 h-12 bg-primary/10 rounded-xl flex items-center justify-center text-primary">
                            <i class="fa fa-calendar text-xl"></i>
                        </div>
                    </div>
                </div>
                
                <div class="stat-card rounded-2xl p-6 card-hover">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-muted text-sm">参与学生</p>
                            <h3 class="text-3xl font-bold text-dark mt-1">1,247</h3>
                            <p class="text-accent text-sm mt-2 flex items-center">
                                <i class="fa fa-arrow-up mr-1"></i> 较上月增长 8%
                            </p>
                        </div>
                        <div class="w-12 h-12 bg-secondary/10 rounded-xl flex items-center justify-center text-secondary">
                            <i class="fa fa-users text-xl"></i>
                        </div>
                    </div>
                </div>
                
                <div class="stat-card rounded-2xl p-6 card-hover">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-muted text-sm">平均分</p>
                            <h3 class="text-3xl font-bold text-dark mt-1">78.5</h3>
                            <p class="text-accent text-sm mt-2 flex items-center">
                                <i class="fa fa-arrow-up mr-1"></i> 较上月提升 2.3 分
                            </p>
                        </div>
                        <div class="w-12 h-12 bg-accent/10 rounded-xl flex items-center justify-center text-accent">
                            <i class="fa fa-bar-chart text-xl"></i>
                        </div>
                    </div>
                </div>
                
                <div class="stat-card rounded-2xl p-6 card-hover">
                    <div class="flex items-start justify-between">
                        <div>
                            <p class="text-muted text-sm">及格率</p>
                            <h3 class="text-3xl font-bold text-dark mt-1">85.2%</h3>
                            <p class="text-accent text-sm mt-2 flex items-center">
                                <i class="fa fa-arrow-up mr-1"></i> 较上月提升 1.5%
                            </p>
                        </div>
                        <div class="w-12 h-12 bg-success/10 rounded-xl flex items-center justify-center text-success">
                            <i class="fa fa-check-circle text-xl"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 筛选和搜索 -->
            <div class="bg-white rounded-2xl shadow-card p-6 mb-6">
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
                    <div>
                        <label class="block text-sm font-medium text-dark mb-2">考试类型</label>
                        <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary">
                            <option value="">全部类型</option>
                            <option value="midterm">期中考试</option>
                            <option value="final">期末考试</option>
                            <option value="quiz">小测验</option>
                            <option value="practice">练习测试</option>
                        </select>
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-dark mb-2">学科</label>
                        <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary">
                            <option value="">全部学科</option>
                            <option value="math">数学</option>
                            <option value="chinese">语文</option>
                            <option value="english">英语</option>
                            <option value="physics">物理</option>
                            <option value="chemistry">化学</option>
                        </select>
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-dark mb-2">年级</label>
                        <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary">
                            <option value="">全部年级</option>
                            <option value="grade7">七年级</option>
                            <option value="grade8">八年级</option>
                            <option value="grade9">九年级</option>
                            <option value="grade10">高一</option>
                            <option value="grade11">高二</option>
                            <option value="grade12">高三</option>
                        </select>
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-dark mb-2">时间范围</label>
                        <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary">
                            <option value="">全部时间</option>
                            <option value="today">今天</option>
                            <option value="week">本周</option>
                            <option value="month">本月</option>
                            <option value="semester">本学期</option>
                        </select>
                    </div>
                </div>
                <div class="flex justify-between items-center mt-4">
                    <div class="flex space-x-2">
                        <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors">
                            <i class="fa fa-search mr-2"></i>搜索
                        </button>
                        <button class="px-4 py-2 bg-white border border-gray-300 text-dark rounded-lg hover:bg-gray-50 transition-colors">
                            <i class="fa fa-refresh mr-2"></i>重置
                        </button>
                    </div>
                    <div class="text-sm text-muted">
                        共找到 <span class="font-medium text-dark">1,247</span> 条成绩记录
                    </div>
                </div>
            </div>

            <!-- 成绩列表 -->
            <div class="bg-white rounded-2xl shadow-card">
                <div class="p-6 border-b border-gray-200">
                    <div class="flex items-center justify-between">
                        <h3 class="text-lg font-bold text-dark">成绩列表</h3>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 text-sm bg-primary/10 text-primary rounded-lg">
                                <i class="fa fa-sort mr-1"></i>排序
                            </button>
                            <button class="px-3 py-1 text-sm bg-secondary/10 text-secondary rounded-lg">
                                <i class="fa fa-filter mr-1"></i>筛选
                            </button>
                        </div>
                    </div>
                </div>
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">学生姓名</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">考试名称</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">学科</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">成绩</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">排名</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">考试时间</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img class="w-8 h-8 rounded-full object-cover" src="https://picsum.photos/id/1/32/32" alt="学生头像">
                                        <div class="ml-3">
                                            <div class="text-sm font-medium text-dark">张三</div>
                                            <div class="text-sm text-muted">高一(3)班</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学期中考试</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="text-lg font-bold text-dark">92</span>
                                    <span class="text-sm text-muted ml-1">/100</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">第 3 名</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-muted">2023-11-15</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">已录入</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i>
                                    </button>
                                    <button class="text-secondary hover:text-secondary/80">
                                        <i class="fa fa-eye"></i>
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img class="w-8 h-8 rounded-full object-cover" src="https://picsum.photos/id/2/32/32" alt="学生头像">
                                        <div class="ml-3">
                                            <div class="text-sm font-medium text-dark">李四</div>
                                            <div class="text-sm text-muted">高一(3)班</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学期中考试</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="text-lg font-bold text-dark">88</span>
                                    <span class="text-sm text-muted ml-1">/100</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">第 5 名</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-muted">2023-11-15</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">已录入</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i>
                                    </button>
                                    <button class="text-secondary hover:text-secondary/80">
                                        <i class="fa fa-eye"></i>
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img class="w-8 h-8 rounded-full object-cover" src="https://picsum.photos/id/3/32/32" alt="学生头像">
                                        <div class="ml-3">
                                            <div class="text-sm font-medium text-dark">王五</div>
                                            <div class="text-sm text-muted">高一(3)班</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学期中考试</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="text-lg font-bold text-dark">95</span>
                                    <span class="text-sm text-muted ml-1">/100</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">第 1 名</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-muted">2023-11-15</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">已录入</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i>
                                    </button>
                                    <button class="text-secondary hover:text-secondary/80">
                                        <i class="fa fa-eye"></i>
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img class="w-8 h-8 rounded-full object-cover" src="https://picsum.photos/id/4/32/32" alt="学生头像">
                                        <div class="ml-3">
                                            <div class="text-sm font-medium text-dark">赵六</div>
                                            <div class="text-sm text-muted">高一(3)班</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学期中考试</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="text-lg font-bold text-dark">76</span>
                                    <span class="text-sm text-muted ml-1">/100</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">第 12 名</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-muted">2023-11-15</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">待录入</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i>
                                    </button>
                                    <button class="text-secondary hover:text-secondary/80">
                                        <i class="fa fa-eye"></i>
                                    </button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <img class="w-8 h-8 rounded-full object-cover" src="https://picsum.photos/id/5/32/32" alt="学生头像">
                                        <div class="ml-3">
                                            <div class="text-sm font-medium text-dark">孙七</div>
                                            <div class="text-sm text-muted">高一(3)班</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学期中考试</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">数学</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="text-lg font-bold text-dark">82</span>
                                    <span class="text-sm text-muted ml-1">/100</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-dark">第 8 名</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-muted">2023-11-15</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">已录入</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                    <button class="text-primary hover:text-primary/80 mr-3">
                                        <i class="fa fa-edit"></i>
                                    </button>
                                    <button class="text-secondary hover:text-secondary/80">
                                        <i class="fa fa-eye"></i>
                                    </button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                
                <!-- 分页 -->
                <div class="flex items-center justify-between px-6 py-4 border-t border-gray-200">
                    <div class="text-sm text-muted">
                        显示 <span class="font-medium">1</span> 到 <span class="font-medium">5</span> 条，共 <span class="font-medium">1,247</span> 条
                    </div>
                    <div class="flex space-x-1">
                        <button class="px-3 py-1 rounded-lg border border-gray-300 text-muted hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed" disabled>
                            <i class="fa fa-angle-left"></i>
                        </button>
                        <button class="px-3 py-1 rounded-lg bg-primary text-white">1</button>
                        <button class="px-3 py-1 rounded-lg border border-gray-300 text-muted hover:bg-gray-50">2</button>
                        <button class="px-3 py-1 rounded-lg border border-gray-300 text-muted hover:bg-gray-50">3</button>
                        <button class="px-3 py-1 rounded-lg border border-gray-300 text-muted hover:bg-gray-50">4</button>
                        <button class="px-3 py-1 rounded-lg border border-gray-300 text-muted hover:bg-gray-50">5</button>
                        <button class="px-3 py-1 rounded-lg border border-gray-300 text-muted hover:bg-gray-50">
                            <i class="fa fa-angle-right"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </main>
</div>

<!-- 引入公共样式和脚本 -->
<link rel="stylesheet" href="../css/admin-styles.css">
<script src="../js/admin-scripts.js"></script>
</body>
</html> 